package com.example.controller.thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/9/20 19:27
 */
@Controller
public class HelloController {
    @RequestMapping("/")
    public String index(ModelMap map) {
        map.addAttribute("message", "hello thymeleaf");
        return "hello";
    }
}
